Open
Conversation
Greptile SummaryThis PR is a clean refactoring that introduces Key changes:
Confidence Score: 5/5Safe to merge — purely mechanical constant extraction with no behavior changes Every replacement is a 1-to-1 substitution of an identical value; TypeScript types are preserved (including No files require special attention Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
C[src/core/constants.ts]
C -->|DIFF_CONTEXT_LINES| L[src/core/loaders.ts]
C -->|UI_LAYOUT_CONSTANTS\nWATCH_POLL_INTERVAL_MS| A[src/ui/App.tsx]
C -->|UI_SCROLL_CONSTANTS| D[src/ui/components/panes/DiffPane.tsx]
C -->|UI_SCROLL_CONSTANTS| V[src/ui/components/scrollbar/VerticalScrollbar.tsx]
C -->|DEFAULT_TAB_SIZE\nHIGHLIGHTER_PREFERRED\nTHEME_CONSTANTS\nTOKENIZE_MAX_LINE_LENGTH| P[src/ui/diff/pierre.ts]
Reviews (1): Last reviewed commit: "refactor: centralize shared render const..." | Re-trigger Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/core/constants.tsfor shared diff, layout, scroll, watch, and theme constantsTesting
bun run typecheckbun testThis PR description was generated by Pi using OpenAI GPT-5